import config from "@/config"
import http from "@/utils/request"
import { objectToFormData } from "@/utils/formDataFormat";

export default {
    APILogin: {
        url: `${config.API_URL}/api_1_0/admin/login`,
        name: "管理员登录接口",
        http: async function(data = {}) {
            return await http.post(this.url, objectToFormData(data));
        }
    },
}